# -*- coding: utf-8 -*-
# 主方法

import random
import Sort.BubbleSort as BubbleSort
import Sort.QuickSort as QuickSort
import Sort.HillSort as HillSort
import Sort.InsertSort as InsertSort
import Sort.SelectSort as SelectSort
import Sort.HeapSort as HeapSort
import Sort.MergeSort as MergeSort

array = [random.randint(1, 99) for i in range(20)]
print "排序前：" + str(array)

# sorted_array = BubbleSort.bubble_sort(array)
# sorted_array = QuickSort.quick_sort(array)
# sorted_array = HillSort.hill_sort(array)
# sorted_array = InsertSort.insert_sort(array)
# sorted_array = SelectSort.select_sort(array)
# sorted_array = HeapSort.heap_sort(array)
# sorted_array = MergeSort.merge_sort(array)
sorted_array = BubbleSort.bubble_sort3(array)
print "排序后" + str(sorted_array)
